FreeType-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

FreeType.Outline

Synopsis

Documentation

newOutlineSVGPrinter :: Handle -> OutlineFuncs Double #

Printer for exporting SVG images.

printOutlineSVG :: String -> Handle -> POutline -> IO () #

Export SVG images.

class RealFrac (BCoord b) => Bezier b where #

Bezier curves.

Minimal complete definition

emptyBezier, moveTo, lineTo, conicTo, cubicTo

Associated Types

type ResultBezier b = (res :: *) | res -> b #

type BCoord b :: * #

Methods

emptyBezier :: b #

resultBezier :: b -> ResultBezier b #

moveTo :: Vector (BCoord b) -> b -> b #

lineTo :: Vector (BCoord b) -> b -> b #

conicTo :: Vector (BCoord b) -> Vector (BCoord b) -> b -> b #

cubicTo :: Vector (BCoord b) -> Vector (BCoord b) -> Vector (BCoord b) -> b -> b #

resultBezier :: ResultBezier b ~ b => b -> ResultBezier b #

extractBezier :: Bezier b => POutline -> Int -> BCoord b -> IO (ResultBezier b) #

Extract a Bezier curve from an outline.

class RealFrac (BSCoord b) => BezierSegment b where #

Bezier curve segments.

Associated Types

type BSCoord b :: * #

Methods

lineFromTo :: Vector (BSCoord b) -> Vector (BSCoord b) -> b #

conicFromTo :: Vector (BSCoord b) -> Vector (BSCoord b) -> Vector (BSCoord b) -> b #

cubicFromTo :: Vector (BSCoord b) -> Vector (BSCoord b) -> Vector (BSCoord b) -> Vector (BSCoord b) -> b #